import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/views/Layout/routerView/index.vue';
// import { t } from '@/hooks/useI18n';

const moduleName = 'workbenches';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/workbenches',
    name: moduleName,
    component: RouterView,
    // meta: {
    //   title: t('routes.workbenches'),
    //   icon: 'icon-yibiaopan',
    // },
	meta: {
	  title: '首页',
	  icon: 'icon-yibiaopan',
	  // hideChildrenInMenu: true,
	},
	component: () => import('@/views/workbenches/index.vue'),
    // children: [
    //   {
    //     path: 'welcome',
    //     name: `${moduleName}-welcome`,
    //     meta: {
    //       title: t('routes.dashboard.workbench'),
    //       icon: 'icon-shouye',
    //     },
    //     component: () =>
    //       import(/* webpackChunkName: "dashboard-welcome" */ '@/views/dashboard/welcome/index.vue'),
    //   },
		// {
		//   path: '/answerPage',
		//   name: 'workbenches-answerPage',
		//   meta: {
		// 	title: '用户答题',
		// 	icon: 'icon-zhuomian',
		// 	// hideInMenu: true,
		//   },
		//   component: () => import('@/views/answerPage/index.vue'),
		// },
  //   ],
  },
];

export default routes;
